package com.zzp.zjs_bos.web.interceptor;




import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
import com.zzp.zjs_bos.domain.User;
import com.zzp.zjs_bos.utils.BOSContext;
//拦截器
public class BOSLoginInterceptor extends MethodFilterInterceptor {
	
	
	protected String doIntercept(ActionInvocation invocation) throws Exception {
		User user = BOSContext.getUser();
		if(user == null){
			return "login";
		}else{
			
			return invocation.invoke();
		}
	}

}
